// TOWN DIALOGUE SCRIPT
//    Town 149: Squiggus

begintalkscript;

variables;

short i,j,k,r1,choice;

// Shirley

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 1;
	question = "Shirley";
	text1 = "This woman has soft clothes, soft hands, and calculating gaze. She was doing a bit of accounting, but when you enter her office she sets down her pen.";
	text2 = "_Welcome, traveler. I am Shirley. Are you looking for work?_";
	text5 = "Shirley leans back in her chair and evaluates whether you are unwounded enough to help her make a profit. _How else can I help you? Do you need useful employment?_";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_What business are you in?_";
	text1 = "_I'm a merchant. I look after the trading in this area._ Her calm, implacable, business-like demeanor is somewhat intimidating after so many months wandering in the wild.";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_So you can make a living as a merchant way out here?_";
	text1 = "_Why, yes. Trading up and down this coast has been increasing at a highly profitable rate. The herbs that grow here don't grow elsewhere. Our products are valuable in Valorim and beyond._";
	text2 = "_Are you interested in making some money?_";

begintalknode;
	state = 3;
	nextstate = -1;
	question = "_How does your trade system work?_";
	text1 = "_Very simply. Couriers can get goods down south, bring them here, and sell them. They can then purchase the herbs we produce, take them down to Libras, and sell them._";
	text2 = "_Quick, easy, safe, profitable. Who could ask for more?_";
	action = SET_SDF 149 11 1;
	code =
		toggle_quest(52,1);
	break;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(149,11) >= 1;
	question = "_I want to buy herbs from you._";
	text1 = "You conclude your business.";
	code =
		begin_shop_mode("Rare Herbs","Shirley sells bundles of rare herbs, picked in the wilderness around Squiggus. If you take them down to Libras, you can get a good price for them.",93,2,3);
	break;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = party_has_item(580) > 0;
	question = "_I've brought up some clothes from Libras._";
	code =
		run_hardcode(150);
	break;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = party_has_item(580) == 0;
	question = "_I'd like to sell to you._";
	text1 = "_Oh, good. We need quality, hardy clothing. It wears out fast in this wilderness. We usually get it shipped up from Libras. Have anything of that?_ You don't. _Oh._";

begintalknode;
	state = 1;
	nextstate = -1;
	condition = 1;
	question = "_I don't need anything else._";
	text1 = "She nods and picks up her pen. _Thanks for dropping by._";
	action = END_TALK;
	
// Voltok

begintalknode;
	tag = 60;
	state = -1;
	nextstate = 29;
	question = "Voltok";
	text1 = "A mage sits behind the counter. He is polishing a dark crystal to a fine, reflective finish. _I am Voltok. Welcome to my shop._";
	text5 = "Voltok asks, _Are you here to buy something?_ The crystals on his desk glitter with magical energy.";
	action = INTRO;

begintalknode;
	state = 29;
	nextstate = 30;
	question = "_What sort of shop is this?_";
	text1 = "_I collect and prepare crystals. It's an ideal place for it. You can purchase crystals here._";

begintalknode;
	state = 30;
	nextstate = 32;
	question = "_What sort of things can I buy around here?_";
	text1 = "_Crystals and herbs are the main products out here. You can get herbs next door. There is not much else. This is not a developed area._";

begintalknode;
	state = 30;
	nextstate = 31;
	question = "_Why is this a good place for crystal collection?_";
	text1 = "_It's very unspoiled and, for some reason, the natural deposits are of a high quality. All of the stone collectors haven't combed this area yet. The only problem is the gremlins._";

begintalknode;
	state = 32;
	nextstate = -1;
	question = "_Do you know anything about the herbs for sale next door?_";
	text1 = "_They're not alchemical herbs. People all over the Empire pay money for them so that they can be put on their food. Out here in the woods they grow very well._";
	text2 = "_They are also not too dangerous to gather. As long as we leave the trees alone, the gremlins don't mind._";

begintalknode;
	state = 31;
	nextstate = 33;
	question = "_How do you deal with the gremlins?_";
	text1 = "_There are plenty of threatening creatures in these woods. The worst are the gremlins. Fortunately, we can deal with them. We leave them milk and cookies outside one of our buildings. They eat them and leave us alone._";

begintalknode;
	state = 33;
	nextstate = -1;
	question = "_Which building?_";
	text1 = "He looks nervous. _Just don't ask too much about it. And don't poke around too much. You aren't from around here. Just leave things be._";


begintalknode;
	state = 29;
	nextstate = -1;
	question = "_Can I take any of those stones off your hands?_";
	text1 = "You conclude your business.";
	code =
		begin_shop_mode("Voltok's Crystals","Voltok gathers high quality crystals in the wilderness and uses his magical skills to enchant them. It takes a lot of skill to do it correctly.",94,5,3);
	break;

begintalknode;
	state = 29;
	nextstate = -1;
	condition = 1;
	question = "_I don't need anything._";
	text1 = "_Fine. Watch out for gremlins._";
	action = END_TALK;